#!/usr/bin/php
<?php
	$arr1 = array(
		'key1' => '1',
		'key2' => '2',
		'key3' => '3',
	);
	$arr2 = array(
		'key1' => '10',
		'key2' => '20',
	);
	foreach($arr1 AS $key => $val)
	{
	//	echo "$key"."=>".$val;
		$arr1[$key] += $arr2[$key]; 
	}
	print_r($arr1);
?>
